package projects.telerik.pageObjects;

import projects.telerik.pageObjects.elements.IndexPageElements;
import fw.ApplicationManager;

public class IndexPage extends IndexPageElements {

	public IndexPage(ApplicationManager app) {
		super(app);
	}

	public IndexPage openInbox() {
		openGlobalFolder("Inbox");
		return this;
	}

	public IndexPage openGlobalFolder(String folderName) {
		app.webElement().click(linkFolder(folderName));
		return this;
	}

	public IndexPage openInboxFolder(String folderName) {
		app.webElement().click(linkInboxFolder(folderName));
		return this;
	}

}
